import request from '@/utils/request'

// 查询零售云广告位列表
export function listAdvertPlace(query) {
  return request({
    url: '/advert/advertPlace/list',
    method: 'get',
    params: query
  })
}

// 查询零售云广告位详细
export function getAdvertPlace(id) {
  return request({
    url: '/advert/advertPlace/' + id,
    method: 'get'
  })
}

// 新增零售云广告位
export function addAdvertPlace(data) {
  return request({
    url: '/advert/advertPlace',
    method: 'post',
    data: data
  })
}

// 修改零售云广告位
export function updateAdvertPlace(data) {
  return request({
    url: '/advert/advertPlace',
    method: 'put',
    data: data
  })
}

// 删除零售云广告位
export function delAdvertPlace(id) {
  return request({
    url: '/advert/advertPlace/' + id,
    method: 'delete'
  })
}

// 导出零售云广告位
export function exportAdvertPlace(query) {
  return request({
    url: '/advert/advertPlace/export',
    method: 'get',
    params: query
  })
}